package com.vhans.db.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vhans.core.domain.ATaskLog;
import com.vhans.db.mapper.ATaskLogMapper;
import com.vhans.db.model.dto.ConditionDTO;
import com.vhans.db.model.vo.log.TaskLogVO;
import com.vhans.db.service.IATaskLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 定时任务日志业务接口实现类
 *
 * @author vhans
 */
@Service
public class ATaskLogServiceImpl extends ServiceImpl<ATaskLogMapper, ATaskLog> implements IATaskLogService {

    @Autowired
    private ATaskLogMapper taskLogMapper;

    @Override
    public List<TaskLogVO> listTaskLog(ConditionDTO condition) {
        return taskLogMapper.selectTaskLogVOList(condition);
    }

    @Override
    public void clearTaskLog() {
        taskLogMapper.delete(null);
    }
}




